package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.InfoCategoryDeptMapper;
import com.ruoyi.system.domain.InfoCategoryDept;
import com.ruoyi.system.service.IInfoCategoryDeptService;
import com.ruoyi.common.core.text.Convert;

/**
 * infocategorydeptService业务层处理
 * 
 * @author ruoyi
 * @date 2023-04-07
 */
@Service
public class InfoCategoryDeptServiceImpl implements IInfoCategoryDeptService 
{
    @Autowired
    private InfoCategoryDeptMapper infoCategoryDeptMapper;

    /**
     * 查询infocategorydept
     * 
     * @param id infocategorydept主键
     * @return infocategorydept
     */
    @Override
    public InfoCategoryDept selectInfoCategoryDeptById(String id)
    {
        return infoCategoryDeptMapper.selectInfoCategoryDeptById(id);
    }

    /**
     * 查询infocategorydept列表
     * 
     * @param infoCategoryDept infocategorydept
     * @return infocategorydept
     */
    @Override
    public List<InfoCategoryDept> selectInfoCategoryDeptList(InfoCategoryDept infoCategoryDept)
    {
        return infoCategoryDeptMapper.selectInfoCategoryDeptList(infoCategoryDept);
    }

    /**
     * 新增infocategorydept
     * 
     * @param infoCategoryDept infocategorydept
     * @return 结果
     */
    @Override
    public int insertInfoCategoryDept(InfoCategoryDept infoCategoryDept)
    {
        return infoCategoryDeptMapper.insertInfoCategoryDept(infoCategoryDept);
    }

    /**
     * 修改infocategorydept
     * 
     * @param infoCategoryDept infocategorydept
     * @return 结果
     */
    @Override
    public int updateInfoCategoryDept(InfoCategoryDept infoCategoryDept)
    {
        return infoCategoryDeptMapper.updateInfoCategoryDept(infoCategoryDept);
    }

    /**
     * 批量删除infocategorydept
     * 
     * @param ids 需要删除的infocategorydept主键
     * @return 结果
     */
    @Override
    public int deleteInfoCategoryDeptByIds(String ids)
    {
        return infoCategoryDeptMapper.deleteInfoCategoryDeptByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除infocategorydept信息
     * 
     * @param id infocategorydept主键
     * @return 结果
     */
    @Override
    public int deleteInfoCategoryDeptById(String id)
    {
        return infoCategoryDeptMapper.deleteInfoCategoryDeptById(id);
    }
}
